<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


<div id="main">
  <div id="hadder">
    <div class="wrapper">
      <div class="hadder_1">
        <div class="navigation">
          <ul>
            <li><a href="#">Sponsor Area </a></li>
            <li>|</li>
            <li><?php echo $this->Html->link('Site Manager Area',array('controller'=>'admin','action'=>''),array('target'=>'_blank'))?></li>
            <li>|</li>
            <li><?php echo $this->Html->link('Create Your Profile',array('controller'=>'users',''));?></li>
            <li>|</li>
            <li><a href="#">Sign In </a></li>
          </ul>
        </div>
        <div class="hadder_right">
          <div id="translate-this"><a href="http://translateth.is/" class="translate-this-button">Translate</a></div>
          <script type="text/javascript" src="http://www.google.com/jsapi"></script> 
          <script type="text/javascript" src="http://x.translateth.is/translate-this.js"></script> 
          <script type="text/javascript">
			TranslateThis();
			</script> 
        </div>
      </div>
      <div class="clear"></div>
    </div>
  </div>
  
  <div id="main_banner">
    <div class="wrapper">
      <div class="logo"><a href="index.html">SITE NAME</a></div>
      <form name="" method="" action="search/index">
      <div class="ban_right">
        <div class="ban_right_1">
        
          <h2>Keyword</h2>
          <br>
          <input type="text" class="field" name="">
          <br>
          <br>
          <p>Type a keyword</p>
        </div>
        <div class="ban_right_1">
          <h2>Where</h2>
          <br>
          <?php
$ip = $_SERVER['REMOTE_ADDR'];
$url = "http://api.ipinfodb.com/v3/ip-city/?key=f6f204b937185539f9f5e8b2cf2ec06d164462e6ca8694590155ea3825c24112&ip=$ip&format=xml";
$xml = simplexml_load_file($url);
$country = $xml->countryName;
$region = $xml->regionName;
$city= $xml->cityName;
?>
          <input type="text" class="field" name="" value="<?php echo $city.','.$region.','.$country?>">
          <br>
          <br>
          <p>Address, city, state,or zipcode</p>
        </div>
        <button class="sea_btn"> search</button>
        <a href="#">Advance Search</a> </div>
        </form> 
      <div class="clear"></div>
    </div>
  </div>
 
  <div class="main_naviga">
    <div class="wrapper">
      <div class="main_nav">
        <ul>
          <li><?php echo $this->Html->link('Home',array('controller'=>'','action'=>'index'));?></li>
          <li><?php echo $this->Html->link('Listings',array('controller'=>'listings','action'=>'index'));?></li>
          <li><?php echo $this->Html->link('Events',array('controller'=>'events','action'=>'index'));?></li>
          <li><?php echo $this->Html->link('Classifieds',array('controller'=>'classifieds','action'=>'index'));?></li>
          <li><?php echo $this->Html->link('Articles',array('controller'=>'articles','action'=>'index'));?></li>
          <li><?php echo $this->Html->link('Deals',array('controller'=>'deals','action'=>'index'));?></li>
          <li><?php echo $this->Html->link('Blog',array('controller'=>'blogs','action'=>'index'));?></li>
          <li><?php echo $this->Html->link('Advertise With Us',array('controller'=>'advertisements','action'=>'index'));?></li>
          <li><?php echo $this->Html->link('Contact Us',array('controller'=>'contactus','action'=>'index'));?></li>
        </ul>
      </div>
      <div class="clear"></div>
    </div>
  </div>
</div>
